<!-- Navigation -->
<?php $numPages = intval($this->Paginator->counter(array('format'=>'%pages%')));
if($numPages>1){ ?>
<table width="100%" class="pagination">
  <tr>
    <td width="33%">&nbsp;
    </td>
    <td width="33%">
      <?php echo $this->Paginator->first('<< First', null, null, array('class' => 'disabled')); ?>&nbsp;&nbsp;
      <?php echo $this->Paginator->prev('<< Previous', null, null, array('class' => 'disabled')); ?>&nbsp;&nbsp;
      <?php echo $this->Paginator->next('Next >>', null, null, array('class' => 'disabled')); ?>&nbsp;&nbsp;
      <?php echo $this->Paginator->last('Last >>', null, null, array('class' => 'disabled')); ?>
    </td>
    <td width="33%">Page <?php echo $this->Paginator->counter(); ?></td>
  </tr>
  <?php
    $numPages = intval($this->Paginator->counter(array('format'=>'pages')));
    if ($numPages >1) {
  ?>
  <tr><td colspan="3">Pages <?php echo $this->Paginator->numbers(); ?></td>
    <?php
    } ?>
</table>

<?php } ?>